class CreateEducationalPlans < ActiveRecord::Migration
  def self.up
    create_table :educational_plans do |t|
      t.text :name
      t.string :abbreviation
      t.references :academic_degree
      t.references :educational_level
      t.integer :year
      t.integer :total_credits
      t.references :term
      t.integer :passing_grade_id
      t.integer :duration_in_terms
      t.integer :min_duration
      t.integer :max_duration
      t.boolean :active, :default => true

      t.timestamps
    end
  end

  def self.down
    drop_table :educational_plans
  end
end
